package com.zuikaku.service.impl;

import com.zuikaku.dao.UserMapper;
import com.zuikaku.pojo.User;
import com.zuikaku.service.UserService;
import com.zuikaku.vo.UserVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserMapper userMapper;

    @Override
    public User getUserByUsernameAndPassword(String userName, String password) {
        User user = userMapper.getUserByUserNameAndPassword(userName,password);
        return user;
    }

    @Override
    public UserVO getUserVOByPk(int userId) {
        return userMapper.getUserVoByPk(userId);
    }
}
